﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace RongCloudSms.Model
{
    public class MongoDBModel
    {
        public MongoDBModel(string mkey, List<RongCloudModel> list)
        {
            this.MKey = mkey;
            this.RongCloudList = list;
        }
        /// <summary>
        /// MongoDB操作 需要有这个默认的字段
        /// </summary>
        [BsonId]
        public ObjectId _id { get; set; }
        public string MKey { get; set; }
        public List<RongCloudModel> RongCloudList { get; set; }
        public DateTime RefreshTime { get; set; }
        public List<int> UserList { get; set; }
    }
}
